import Vue from 'vue'
import App from './App.vue'
import 'element-ui/lib/theme-chalk/index.css';
import router from "@/router";

import ElementUI from 'element-ui';
Vue.use(ElementUI);
Vue.config.productionTip = false

import axios from "axios";

axios.interceptors.request.use((config) => {
  const token = localStorage.getItem("token");
  if (token) {
    config.headers["Authorization"] = token;
  }
  return config;
});


new Vue({
  render: h => h(App),
  router
}).$mount('#app')
